<input type="text"
    {foreach $data.attrs as $key => $attr}
    {$key}='{$attr}'
    {/foreach}
>